package designs.models.proxy.example.one;

import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;

public class RemoteConcreteSubject extends UnicastRemoteObject implements RemoteSubject {
	
	
	private static final long serialVersionUID = -3043091171160121836L;
	double width,height;
	
	
	public RemoteConcreteSubject(double width, double height) throws RemoteException {
		super();
		this.width = width;
		this.height = height;
	}


	public double getArea() throws RemoteException {
		return width * height;
	}

}
